/*
* @Author: xiaoyangzhao
* @Last Modified by:   xiaoyangzhao
*/
// import 'https://maps.googleapis.com/maps/api/js?key=AIzaSyCL_tt4ZGfeJOyd4SYMr4pSrjbDMJuPp4E&sensor=false'

// let google = google || {
//     maps: {
//         LatLng: ll => console.log(ll),
//         MapTypeId: {
//             ROADMAP: 1
//         },
//         Map: (dom, prop) => console.log(dom, prop)
//     }
// }
let initMap = (domId, latLng) => {
    const mapProp = {
        zoom: 10,
        center: new google.maps.LatLng(...latLng),
        mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    let map = new google.maps.Map(document.getElementById(domId), mapProp)
    // google.maps.event.addDomListener(window, 'load', initMap(domId))
}

export { google, initMap }
